<!--用户操作弹窗-->
<ng-template #modalContent>
    <nz-spin [nzSpinning]="modalLoadingState">
        <form nz-form [formGroup]="dataForm" nzLayout="vertical">
            <div nz-row [nzGutter]="24">
                <div nz-col nzSpan="24">
                    <nz-form-item>
                        <nz-form-label nzRequired>字典名称</nz-form-label>
                        <nz-form-control [nzErrorTip]="errorUserNameTpl">
                            <input nz-input [(ngModel)]="dictTypeModel.dictName" formControlName="dictName" placeholder="" />
                            <ng-template #errorUserNameTpl let-control>
                                <ng-container *ngIf="control.hasError('required')">不能为空</ng-container>
                            </ng-template>
                        </nz-form-control>
                    </nz-form-item>
                </div>

                <div nz-col nzSpan="24">
                    <nz-form-item>
                        <nz-form-label nzRequired>字典类型</nz-form-label>
                        <nz-form-control [nzErrorTip]="errorUserNameTpl">
                            <input nz-input [(ngModel)]="dictTypeModel.dictType" formControlName="dictType" placeholder="" />
                            <ng-template #errorUserNameTpl let-control>
                                <ng-container *ngIf="control.hasError('required')">不能为空</ng-container>
                            </ng-template>
                        </nz-form-control>
                    </nz-form-item>
                </div>
                <div nz-col nzSpan="24">
                    <nz-form-item>
                        <nz-form-label>状态</nz-form-label>
                        <nz-form-control>
                            <nz-radio-group [(ngModel)]="dictTypeModel.status" nzButtonStyle="solid" formControlName='status'>
                                <label nz-radio-button nzValue="0">正常</label>
                                <label nz-radio-button nzValue="1">停用</label>
                            </nz-radio-group>
                        </nz-form-control>
                    </nz-form-item>
                </div>

                <div nz-col nzSpan="24">
                    <nz-form-item>
                        <nz-form-label>备注</nz-form-label>
                        <nz-form-control>
                            <input type='text' [(ngModel)]='dictTypeModel.remark' formControlName="remark" placeholder="请输入备注" nz-input/>
                        </nz-form-control>
                    </nz-form-item>
                </div>
            </div>
        </form>
    </nz-spin>
</ng-template>
<ng-template #modalFooter>
    <button nz-button nzType="primary" [disabled]="dataForm.invalid" [nzLoading]="saveLoadingState" (click)="onSave()">
        保存
    </button>
</ng-template>

